<?php

namespace App\CustHub\Amqp\Producers;

use App\CustHub\Dto\ActiveAddFriendProducersDto;
use Hyperf\Amqp\Annotation\Producer;
use Hyperf\Amqp\Message\ProducerMessage;


#[Producer(exchange: 'add_friend', routingKey: 'add_friend')]
class ActiveAddFriendProducers extends ProducerMessage
{
    public function __construct(ActiveAddFriendProducersDto $data)
    {
        $this->payload = $data->toArray();
    }
}